home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
rdir10.zip
/
RDIR.DOC
next >
Wrap
Text File
|
1991-09-05
|
13KB
|
329 lines
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒
▒▒░░ ░░▒▒
▒▒░░ RDIR Remove Directories v1.0 ░░▒▒
▒▒░░ ░░▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒
▒▒░░ ░░▒▒
▒▒░░ COPYRIGHT (C) 1991 by Marc Branchaud ░░▒▒
▒▒░░ ░░▒▒
▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
█ Origins and Features █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
RDIR has three main inspirations:
(1) The relativly icky taste all other directory-killing programs left
in my mouth after I'd use them. RDIR has been designed to
eliminate ickyness.
(2) The need to erase a directory without the "Are you sure (Y/N)?"
prompt getting in the way.
(3) The need to erase a directory that exists on more than one drive
(also without the "Are you sure (Y/N)?" prompt).
Hence, RDIR. I've included a couple of extra features that I think are
useful and that I haven't seen before. These are:
o The ability to exclude files and/or directories (or even whole
drives). At last, a "delete-everything-but" command!
o A count of directories, files and bytes that are about to get
zapped.
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
█ Disclaimer █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
RDIR is *extremely* powerful! It deletes hidden and system files or
directories as well as regular ones (by default you are prompted before
any read-only files are deleted). Nevertheless, it is possible to wipe
out your entire system with one command, and if you use the promptless
mode you won't even be warned!
So take heed. Remember that I'm not responsible for anything, and if
anything you do with RDIR ruins your life or otherwise inconveniences
you, then you've got no business whining to me about it.
█▀▀▀▀▀▀▀▀▀█
█ Usage █
█▄▄▄▄▄▄▄▄▄█
RDIR is easy to use for anyone who understands DOS intuitively. For the
remaining 5.3 billion of us who don't, here's a few hints and
instructions.
An RDIR command consists of three parts:
(1) The word RDIR
(2) Optional commands you want RDIR to recognize
(3) The name (path) of the directory you want to remove
or, to put it technically, RDIR is used as follows:
RDIR path [options]
If you just enter RDIR by itself, you'll see a brief summary of
instructions.
Ye Path
───────
Any legal DOS directory path can be used. Do NOT include file names
in the path, as that will confuse RDIR. Some examples:
COOL Specifies COOL as a subdirectory of the current
directory (I guess I've just lost any non-intuitive
DOS users...).
\COOL Specifies COOL as a subdirectory of the root
directory.
..\COOL Specifies COOL as a subdirectory of the parent
directory.
\WOW\COOL Specifies COOL as a subdirectory of the WOW directory.
D:\COOL Specifies COOL as a subdirectory of drive D:.
. If you specify the current directory, RDIR will not
remove it. Everything inside will be deleted though.
You can also use a wildcard character (* or ?) to tell RDIR that you
want to remove the same directory from ALL of your hard drives (to
include floppy drives, use the -f option (see below)). For example:
?:\PLANT Tells RDIR to remove the PLANT directories from all of
your hard drives.
*:\POT Tells RDIR to remove the POT directories from all of
your hard drives.
Do NOT use wildcards anywhere else in the path! RDIR will not
recognize them.
Ye Options
──────────
RDIR recognizes 6 different command options, and they are optional.
Each option must begin with either a dash (a -) or a slash (a /).
Each option must be separated by at least one space.
The five options are:
-? Help screen
-f Include floppy drives (when a wildcard drive letter is used).
You will be prompted to insert your floppy disk(s). RDIR is
designed to recognize how many floppies your system has,
although this hasn't been tested on systems with more than 2
floppies. An empty floppy drive won't screw up RDIR. The
drive will still be scanned, but if there is no diskette in it
RDIR will move on.
-q Quiet mode: no prompts or status lines or warnings.
-r Delete read-only files without prompting.
Notes :> When running in quiet mode, read-only files will NOT
be deleted unless you include the -r command.
:> Directories marked as read-only will always be removed
WITHOUT any prompting no matter which command options
you use. (In fact, DOS doesn't explicitly recognize
read-only directories; and you can RmDir them just as
you would a normal directory.)
-s Don't delete subdirectories.
-x<template> Don't delete files or directories that match the template.
For example, -x*.EXE will exclude any .EXE files from
deletion. In order to have to template apply to directories,
put a \ at the end: (e.g. -xGAMES\ will exclude any directory
called GAMES (and their subdirectories) from deletion). You
can also use wildcards when specifying a directory. Here are
some more examples of the -x command:
-xT?.* Excludes any two-letter files that start with a T.
-xD: Excludes all files and directories on drive D:.
-xTRAP\ Excludes any directory named TRAP.
-xF*.*\ Excludes any directory that starts with an F
(remember: directories can have extenstions too).
The -x command can be used up to 10 times in one RDIR command.
The order of options and path does not matter. RDIR is also case-
insensitive, so commands such as
RdIr -Q /xf*\ *:\TEmP /f -x*.Bat -X??tEr.*\
will not confuse the program at all.
Ye Examples
───────────
Here are some examples to help you on your way to the joys of mass
deletion.
Command: RDIR C:\FANGLE
Effect: The directory FANGLE on drive C: (and all of FANGLE's sub-
directories) will be removed.
Command: RDIR C:\FANGLE -s
Effect: All the files in the directory FANGLE on drive C: will be
erased, and if there are no subdirectories in FANGLE then
FANGLE itself will also be erased.
Command: RDIR C:\Fangle -x*.exe
Effect: All the files, except for .EXE files, in FANGLE on drive C:
(and in all of FANGLE's subdirectories) will be removed.
Any empty subdirectories will also be removed.
Command: RDIR C:\fangle -q
Effect: The directory FANGLE on drive C: (and all of FANGLE's sub-
directories) will be removed. There will NOT be an "Are you
sure?" prompt before the fiels are erased!
Command: RDIR C:\
Effect: All of drive C: will be erased.
Command: RDIR ?:\TOAST
Effect: All the TOAST directories and their subdirectories on all
the drives (except the floppies) will be erased.
Command: RDIR ?:\toast -f
Effect: All the TOAST directories and their subdirectories on all
the drives (including the floppies) will be erased. You'll
be prompted to insert the floppies.
Command: RDIR ?:\ -xsystem\
Effect: All directories on all drives, except for directories or
subdirectories called SYSTEM, will be removed.
Command: RDIR ?:\ -q
Effect: All hard drives will be erased, WITHOUT any warning!
Command: RDIR C:\goop -x*.bat -xTEST*.*\
Effect: The directory GOOP on drive C: will be erased, except for
any .BAT files and any subdirectories of GOOP that start
with TEST.
These should give you a good idea of how RDIR works. Happy deleting!
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
█ Known Problems █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
RDIR has been tested and works on the following systems:
o Plain 286 AT running DOS 5.0 with 2 floppy drives.
o Plain 386 AT running DOS 5.0 with 2 floppy drives.
o Good old 8086 XT running MS-DOS 3.3 with 1 floppy drive.
o AT&T PC6300 (Olivetti XT) running MS-DOS 3.1 with 1 floppy.
RDIR will NOT WORK on the following systems:
-- At this time there are no known PC system configurations
that RDIR does not support. Cool or what eh?
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
█ Solicitation █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
Suggestions, donations, goodwill, charity, jokes, free samples, and other
gifts can be sent to:
CANADA U.S.A.
────── ──────
Marc Branchaud Marc Branchaud
CP 386 ┌────┐ C/O Pinnacle Software
Town of Mount Royal │ OR │ Box 714 Airport Road
Quebec, Canada └────┘ Swanton, Vermont
H3P 3C6 05488
Proper and honorable monetary compensation is considered to be $5.00 or
even more if you're in a real good mood. For those of you who are
suffering through difficult financial times, a simple "Thanks!" is
enough.
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
█ Support Via Modem █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
If you don't have a modem, don't hesitate to drop me a note in the mail.
I'm interested in knowing how far my program spreads, and I'd really
like to hear from you!
For those of you who own a modem, you can contact me (and get some free
software to boot) at:
·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·
: :
:: Pinnacle Software Support BBS -- 514-345-8654 ::
:: 24 hours per day, at up to 9600 baud (v42bis) ::
: :
·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·∙·
This BBS runs as a shell from another BBS. When you log on, you'll be
asked a few questions about your system. Then you'll see a short menu,
and then a simple > prompt. At the > prompt, you can:
o Type /RDIR to download the latest version of RDIR.
o Type /BBS to connect to the EMail system. To send mail to me,
direct your message to MARC. I read through the whole system most
every day (it's not ultra-huge), so it doesn't really matter which
"message base" you save your message on.
The BBS is run by the friendly folks at Pinnacle Software (the most
prolific producers of shareware in Canada). I owe them many thanks.
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
█ About The Author █
█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
Marc Branchaud has been using microcomputers and deleting files since
1981. He is currently studying computer science at McGill University.
He hopes to someday witness the following natural phenomena: a solar
eclipse; a decent volcanic eruption; a supernova; and free cable TV.
Marc is currently living with cats.
Marc Branchaud
September 05, 1991